package com.jixi.controller;

import com.jixi.common.result.Result;
import com.jixi.service.StatisticsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@Slf4j
@RestController
@RequestMapping("/education")
public class StatisticsController {
	@Autowired
	private StatisticsService statisticsService;
	
	/**
	 * 获取9项统计信息
	 *
	 * @return 统计信息
	 */
	@GetMapping("/getStatistics")
	public Result<Map<String, Long>> getStatistics() {
		return statisticsService.getStatistics();
	}
	
}
